package com.ruoyi.system.domain;

import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 分类管理对象 category
 * 
 * @author Amanda
 * @date 2025-07-16
 */
public class Category extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品分类编号 */
    private Long categoryId;

    /** 商品分类名 */
    @Excel(name = "商品分类名")
    private String categoryName;

    /** 上级分类id */
    @Excel(name = "上级分类id")
    private Long categoryParentId;

    /** 排序值 */
    @Excel(name = "排序值")
    private Long categorySort;

    /** 添加时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "添加时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime categoryAddtime;

    public void setCategoryId(Long categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() 
    {
        return categoryId;
    }

    public void setCategoryName(String categoryName) 
    {
        this.categoryName = categoryName;
    }

    public String getCategoryName() 
    {
        return categoryName;
    }

    public void setCategoryParentId(Long categoryParentId) 
    {
        this.categoryParentId = categoryParentId;
    }

    public Long getCategoryParentId() 
    {
        return categoryParentId;
    }

    public void setCategorySort(Long categorySort) 
    {
        this.categorySort = categorySort;
    }

    public Long getCategorySort() 
    {
        return categorySort;
    }

    public void setCategoryAddtime(LocalDateTime categoryAddtime)
    {
        this.categoryAddtime = categoryAddtime;
    }

    public LocalDateTime getCategoryAddtime()
    {
        return categoryAddtime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("categoryId", getCategoryId())
            .append("categoryName", getCategoryName())
            .append("categoryParentId", getCategoryParentId())
            .append("categorySort", getCategorySort())
            .append("categoryAddtime", getCategoryAddtime())
            .toString();
    }
}
